package DTO;

import android.vstore.activities.MainActivity;

public class CategoryDTO extends ImageDTO{
	public int id;
	public String name;
	public int count;
	public String createdDate;
	public static String getName(int catId)
	{
		for(int i =0;i < MainActivity._gamecategories.size();i++)
			if(MainActivity._gamecategories.get(i).id == catId)
				return MainActivity._gamecategories.get(i).name;
		for(int i =0;i < MainActivity._appcategories.size();i++)
			if(MainActivity._appcategories.get(i).id == catId)
				return MainActivity._appcategories.get(i).name;
		return "";
	}
}
